const { find } = require('./car')

const Goodsdesc = require('../../db').Goodsdesc

module.exports = {
    async find(ctx,next){
        let id = ctx.params.id

        try{
            let descinfo = await Goodsdesc.find({ "id": id },null)

            ctx.body = {
                code: 200,
                msg: '获取信息成功',
                list: descinfo
            }
        } catch(e){
            ctx.body = {
                code: 500,
                msg: '获取信息失败'
            }
        }
    }
}